﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Brjostagjof.Models
{
    /// <summary>
    /// Sér um að meðhöndla villur í innslætti og birta viðeigandi skilaboð.
    /// </summary>
   
    #region Flokkar

        [MetadataType(typeof(CategoryAnnotations))]
        public partial class Category { }

        public class CategoryAnnotations
        {
            [Required(ErrorMessage="*")]
            [DisplayName("Flokkur")]
            public virtual String Category1 { get; set; }
        }

    #endregion

    #region Greinar

        [MetadataType(typeof(ArticleAnnotations))]
        public partial class Article { }

        public class ArticleAnnotations
        {
            [Required(ErrorMessage = "*")]
            [DisplayName("Flokkur")]
            public virtual String Category { get; set; }

            [Required(ErrorMessage = "*")]
            [DisplayName("Titill")]
            public virtual String Title { get; set; }

            [Required(ErrorMessage="*")]
            [DisplayName("Meginmál")]
            public virtual String Body { get; set; }
        }

    #endregion

    #region Fréttagreinar

        [MetadataType(typeof(NewsArticleAnnotations))]
        public partial class NewsArticle { }

        public class NewsArticleAnnotations
        {
            [Required(ErrorMessage = "*")]
            [DisplayName("Titill")]
            public virtual String Title { get; set; }

            [Required(ErrorMessage = "*")]
            [DisplayName("Meginmál")]
            public virtual String Body { get; set; }

        }

    #endregion

    #region Algengar Spurningar

        [MetadataType(typeof(CommonQuestionAnnotations))]
        public partial class CommonQuestion { }

        public class CommonQuestionAnnotations
        {
            [Required(ErrorMessage = "*")]
            [DisplayName("Spurning")]
            public virtual String Title { get; set; }

            [Required(ErrorMessage = "*")]
            [DisplayName("Svar")]
            public virtual String Body { get; set; }

        }

    #endregion

    #region Börn

        [MetadataType(typeof(ChildAnnotations))]
        public partial class Child { }

        public class ChildAnnotations
        {
            [Required(ErrorMessage = "*")]
            [DisplayName("Nafn")]
            public virtual String Name { get; set; }

            [Required(ErrorMessage = "*")]
            [DisplayName("Fæðingardagur")]
            public virtual DateTime Dateofbirth { get; set; }
        }

#endregion

    #region Myndir

        [MetadataType(typeof(ImageAnnotations))]
        public partial class Image { }

        public class ImageAnnotations
        {
            [Required(ErrorMessage = "*")]
            [DisplayName("Titill á mynd")]
            public virtual String ImageTitle { get; set; }

            [Required(ErrorMessage = "*")]
            [DisplayName("Texti með mynd")]
            public virtual String ImageMessage { get; set; }
        }


#endregion

    #region Myndbönd

        [MetadataType(typeof(VideoAnnotations))]
        public partial class Video { }

        public class VideoAnnotations
        {
            [Required(ErrorMessage = "*")]
            [DisplayName("Titill á myndbandi")]
            public virtual String VideoTitle { get; set; }

            [Required(ErrorMessage = "*")]
            [DisplayName("Texti með myndbandi")]
            public virtual String VideoMessage { get; set; }
        }

        [MetadataType(typeof(YouTubeAnnotations))]
        public partial class YouTube { }

        public class YouTubeAnnotations
        {
            [Required(ErrorMessage = "*")]
            [DisplayName("Titill á myndbandi")]
            public virtual String YTTitle { get; set; }

            [Required(ErrorMessage = "*")]
            [DisplayName("Tengill á myndband")]
            public virtual String YTUrl  { get; set; }

            [Required(ErrorMessage = "*")]
            [DisplayName("Texti með myndbandi")]
            public virtual String YTMessage { get; set; }


        }


        #endregion

    #region Survey

        [MetadataType(typeof(SurveyAnnotations))]
        public partial class Survey { }

        public class SurveyAnnotations
        {
            [Required(ErrorMessage = "*")]
            [DisplayName("Script fyrir könnun")]
            public virtual String Body { get; set; }
        }

    #endregion

    #region FullName
	
		[MetadataType(typeof(aspnet_MembershipAnnotations))]
		public partial class aspnet_Membership { }

		public class aspnet_MembershipAnnotations
		{
			[Required(ErrorMessage = "*")]
			[DisplayName("Fullt nafn")]
			public virtual String FullName { get; set; }
			
		}
	
		#endregion

}